package ink.yql.model;

import java.io.Serializable;

/**
 * @author YQL
 */
public class Orderform implements Serializable {
    /**
     * 订单id
     */
    private Integer oid;
    /**
     * 用户id
     */
    private Integer uid;
    /**
     * 回报id
     */
    private Integer rid;
    /**
     * 订单状态 0待付款 1待收货 2待发货 3以收获 4退款
     */
    private Integer ostatus;
    /**
     * 账号id
     */
    private Integer aid;
    /**
     * 创建的时间
     */
    private String createTime;

    public Orderform(Integer oid, Integer uid, Integer rid, Integer ostatus, Integer aid, String createTime) {
        this.oid = oid;
        this.uid = uid;
        this.rid = rid;
        this.ostatus = ostatus;
        this.aid = aid;
        this.createTime = createTime;
    }

    public Orderform() {
    }

    public static OrderformBuilder builder() {
        return new OrderformBuilder();
    }

    public Integer getOid() {
        return this.oid;
    }

    public Integer getUid() {
        return this.uid;
    }

    public Integer getRid() {
        return this.rid;
    }

    public Integer getOstatus() {
        return this.ostatus;
    }

    public Integer getAid() {
        return this.aid;
    }

    public String getCreateTime() {
        return this.createTime;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public void setOstatus(Integer ostatus) {
        this.ostatus = ostatus;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof Orderform)) return false;
        final Orderform other = (Orderform) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$oid = this.getOid();
        final Object other$oid = other.getOid();
        if (this$oid == null ? other$oid != null : !this$oid.equals(other$oid)) return false;
        final Object this$uid = this.getUid();
        final Object other$uid = other.getUid();
        if (this$uid == null ? other$uid != null : !this$uid.equals(other$uid)) return false;
        final Object this$rid = this.getRid();
        final Object other$rid = other.getRid();
        if (this$rid == null ? other$rid != null : !this$rid.equals(other$rid)) return false;
        final Object this$ostatus = this.getOstatus();
        final Object other$ostatus = other.getOstatus();
        if (this$ostatus == null ? other$ostatus != null : !this$ostatus.equals(other$ostatus)) return false;
        final Object this$aid = this.getAid();
        final Object other$aid = other.getAid();
        if (this$aid == null ? other$aid != null : !this$aid.equals(other$aid)) return false;
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        if (this$createTime == null ? other$createTime != null : !this$createTime.equals(other$createTime))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof Orderform;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $oid = this.getOid();
        result = result * PRIME + ($oid == null ? 43 : $oid.hashCode());
        final Object $uid = this.getUid();
        result = result * PRIME + ($uid == null ? 43 : $uid.hashCode());
        final Object $rid = this.getRid();
        result = result * PRIME + ($rid == null ? 43 : $rid.hashCode());
        final Object $ostatus = this.getOstatus();
        result = result * PRIME + ($ostatus == null ? 43 : $ostatus.hashCode());
        final Object $aid = this.getAid();
        result = result * PRIME + ($aid == null ? 43 : $aid.hashCode());
        final Object $createTime = this.getCreateTime();
        result = result * PRIME + ($createTime == null ? 43 : $createTime.hashCode());
        return result;
    }

    public String toString() {
        return "Orderform(oid=" + this.getOid() + ", uid=" + this.getUid() + ", rid=" + this.getRid() + ", ostatus=" + this.getOstatus() + ", aid=" + this.getAid() + ", createTime=" + this.getCreateTime() + ")";
    }

    public static class OrderformBuilder {
        private Integer oid;
        private Integer uid;
        private Integer rid;
        private Integer ostatus;
        private Integer aid;
        private String createTime;

        OrderformBuilder() {
        }

        public Orderform.OrderformBuilder oid(Integer oid) {
            this.oid = oid;
            return this;
        }

        public Orderform.OrderformBuilder uid(Integer uid) {
            this.uid = uid;
            return this;
        }

        public Orderform.OrderformBuilder rid(Integer rid) {
            this.rid = rid;
            return this;
        }

        public Orderform.OrderformBuilder ostatus(Integer ostatus) {
            this.ostatus = ostatus;
            return this;
        }

        public Orderform.OrderformBuilder aid(Integer aid) {
            this.aid = aid;
            return this;
        }

        public Orderform.OrderformBuilder createTime(String createTime) {
            this.createTime = createTime;
            return this;
        }

        public Orderform build() {
            return new Orderform(oid, uid, rid, ostatus, aid, createTime);
        }

        public String toString() {
            return "Orderform.OrderformBuilder(oid=" + this.oid + ", uid=" + this.uid + ", rid=" + this.rid + ", ostatus=" + this.ostatus + ", aid=" + this.aid + ", createTime=" + this.createTime + ")";
        }
    }
}
